﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApprovalTimeSpan.aspx.cs" Inherits="CentralOffice.WebClient.Tasks.ApprovalTimeSpan" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../theme/2/style.css" />
    <script src="../inc/js/ccorrect_btn.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table class="TableBlock" width="100%" align="center">
   <tr>
      <td nowrap class="TableData">申请日期从：</td><td nowrap class="TableData"><asp:TextBox ID="txtDateOfApplication" runat="server" CssClass="BigInput"></asp:TextBox>&nbsp;<img onclick="WdatePicker({el:$dp.$('txtIntendingDate')})" src="../../inc/js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle"></td>
      <td nowrap class="TableData">到：</td><td nowrap class="TableData"><asp:TextBox ID="txtDateOfApplicationEnd" runat="server" CssClass="BigInput"></asp:TextBox>&nbsp;<img onclick="WdatePicker({el:$dp.$('txtDateOfApplicationEnd')})" src="../../inc/js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle"></td>
   </tr>
   <tr>
    <td nowrap class="TableControl" colspan="6" align="center"><asp:Button ID="btnQuery" runat="server" Text="查询"  CssClass="BigButton"  /></td>
   </tr>
</table>

<%--OnClick="btnQuery_Click"
OnRowDataBound="gv_RowDataBound"
SortExpression="Applicant"
--%>
<div style="margin-top:20px; margin-left:8px;"><h3>审批超时情况统计：</h3></div>

<huag:OAGridView  id="gv" runat="server" DataKeyNames="ApprovedBy" 
AllowSorting="True" 
skinid="DefaultGridView" Width="98%"  
DataSourceID="odsApproval"  
EnableViewState="false" >
   <Columns>
       <asp:TemplateField>
         <ItemTemplate>
              <%#Container.DataItemIndex+1 %>
         </ItemTemplate>
       </asp:TemplateField>
       <asp:BoundField DataField="ApprovedBy" HeaderText="审批人"  />
       <asp:BoundField DataField="NormalCount" HeaderText="按时审批次数"  />
       <asp:BoundField DataField="TimeoutCount" HeaderText="超时审批次数"  />
       <asp:BoundField DataField="ElapsedTime" HeaderText="超时分钟数" />
       <asp:BoundField DataField="Deduct" HeaderText="每分钟扣款" />
       <asp:BoundField DataField="Sum" HeaderText="扣款金额" />
   </Columns>
</huag:OAGridView>
<asp:ObjectDataSource id="odsApproval" runat="server" 
 TypeName="CentralOffice.Task.BusinessActions.Approvals" 
 SelectMethod="GetApprovalTimeSpan"
 SortParameterName="sortExpression" OnSelecting="odsApproval_Selecting">
    <SelectParameters>      
      <%--<asp:Parameter Name="delay" Type="Int32" />--%>
      <asp:Parameter Name="deduct" Type="Decimal" />
      <asp:Parameter Name="start" Type="DateTime"  />
      <asp:Parameter Name="end" Type="DateTime" />
    </SelectParameters>
</asp:ObjectDataSource>
    </form>
    <script type="text/javascript" src="../inc/js/My97DatePicker/WdatePicker.js"></script>
</body>
</html>
